<%@ include file="/WEB-INF/views/include.jsp"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>

<html>
<head>
<title><fmt:message key="title" /></title>
<link href="<s:url value="/resources" />/css/style.css" 
	rel="stylesheet" type="text/css" />
<body>
	<h1>
		<fmt:message key="inventory.heading" />
	</h1>
	<p>
		<fmt:message key="greeting" />
		<c:out value="${model.now}" />
	</p>

	<table class="table3">
		<thead>
			<tr>
				<th></th>
				<c:forEach items="${model.products}" var="prod">
					<th><a href="products/${prod.id}"> ${prod.name} </a></th>
				</c:forEach>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<th scope="row">Price per month</th>
				<c:forEach items="${model.products}" var="prod">
					<th>$ ${prod.price}</th>
				</c:forEach>
			</tr>
		</tfoot>
		<tbody>
			<tr>
				<th scope="row">Storage Space</th>
				<c:forEach items="${model.products}" var="prod">
					<td>${prod.storageSpace}</td>
				</c:forEach>
			</tr>
			<tr>
				<th scope="row">Bandwidth</th>
				<c:forEach items="${model.products}" var="prod">
					<td>${prod.bandwidth}</td>
				</c:forEach>
			</tr>
			<tr>
				<th scope="row">MySQL Databases</th>
				<c:forEach items="${model.products}" var="prod">
					<td>${prod.sqldatabase}</td>
				</c:forEach>
			</tr>
			<tr>
				<th scope="row">Setup</th>
				<c:forEach items="${model.products}" var="prod">
					<td>${prod.setupfee}</td>
				</c:forEach>
			</tr>
		</tbody>
	</table>
	<br>
	<a href="priceincrease.htm">Increase Price Per Month for all Products</a>
	<br>
</body>
</html>